package com.yf.converter.manage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.model.ai.entity.AiConversation;
import com.yf.model.ai.form.AiConversationForm;
import com.yf.model.ai.vo.AiConversationPageVO;
import com.yf.model.ai.vo.UserChatConversationVO;
import org.mapstruct.Mapper;

/**
 * AI 会话表-AiConversationConverter
 *
 * @author: YiFei
 * @since : 2025年7月6日 21:34:16
 */
@Mapper(componentModel = "spring")
public interface AiConversationConverter {

    Page<AiConversationPageVO> page2pageVO(Page<AiConversation> page);

    AiConversation form2entity(AiConversationForm aiConversationForm);

    AiConversationForm entity2form(AiConversation aiConversation);

    UserChatConversationVO entity2ChatVo(AiConversation item);
}
